interpolate-value begin-value end-value max-length position
interpolate-value is used in internal tempo calculation, but as it is a general interpolator it may have other uses as well. Given a position within a max-length it scales the value to a range from begin-value to end-value.